package com.ss.android.newmedia.a;

import android.app.Activity;

import com.ss.android.article.browser.R;
import com.ss.android.newmedia.activity.BaseActivity;

public final class OverridePendingTransitionHelper {
    private static int a = R.anim.a7;
    private static int b = R.anim.ad;
    private static int c = R.anim.a9;
    private static int d = R.anim.ab;
    private static int e = R.anim.a8;
    private static int f = R.anim.ae;
    private static int g = R.anim.a_;
    private static int h = R.anim.ac;
    private static int i = R.anim.a6;
    private static int j = R.anim.af;
    private static int k = R.anim.a1;
    private static int l = R.anim.a2;

    public static void overrideEnterPendingTransition(Activity activity, int arg4) {
        int v1;
        int v0 = 0;
        if (activity != null) {
            switch (arg4) {
                case 0: {
                    v1 = c;
                    v0 = d;
                    break;
                }
                case 1: {
                    v1 = 0;
                    break;
                }
                case 2: {
                    v1 = g;
                    v0 = h;
                    break;
                }
                case 3: {
                    v1 = i;
                    v0 = l;
                    break;
                }
                default: {
                    v1 = c;
                    v0 = d;
                    break;
                }
            }

            if ((activity instanceof BaseActivity)) {
                ((BaseActivity) activity).superOverridePendingTransition(v1, v0);
            } else {
                activity.overridePendingTransition(v1, v0);
            }
        }
    }

    public static void overrideExitPendingTransition(Activity activity, int arg4) {
        int enterAnim;
        int exitAnim = 0;
        if (activity != null) {
            switch (arg4) {
                case 0: {
                    enterAnim = a;
                    exitAnim = b;
                    break;
                }
                case 1: {
                    enterAnim = 0;
                    break;
                }
                case 2: {
                    enterAnim = e;
                    exitAnim = f;
                    break;
                }
                case 3: {
                    enterAnim = k;
                    exitAnim = j;
                    break;
                }
                default: {
                    enterAnim = a;
                    exitAnim = b;
                    break;
                }
            }

            if ((activity instanceof BaseActivity)) {
                ((BaseActivity) activity).superOverridePendingTransition(enterAnim, exitAnim);
            } else {
                activity.overridePendingTransition(enterAnim, exitAnim);
            }
        }
    }
}

